package com.wlx.gateway.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 消息发送器配置
 *
 * @author wlx
 */
//@Component(value = "senderProperties")
//@ConfigurationProperties(prefix = "sender")
@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "sender")
public class SenderProperties {

    /**
     * 每日下发者上限次数
     */
    private Integer limitDay;

    /**
     * 发送模板
     */
    private String senderCode;

    /**
     * 参数集
     */
    public Map<String, Object> maps = new ConcurrentHashMap<>(16);

    public Map<String, Object> getMaps() {
        return maps;
    }

    public void setMaps(Map<String, Object> maps) {
        this.maps = maps;
    }

    public Integer getLimitDay() {
        return limitDay;
    }

    public void setLimitDay(Integer limitDay) {
        this.limitDay = limitDay;
    }

    public String getSenderCode() {
        return senderCode;
    }

    public void setSenderCode(String senderCode) {
        this.senderCode = senderCode;
    }
}
